package com.cqq.print.base.dao.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.base.dao.domain.PBookCategory;
import com.cqq.print.base.dao.mapper.PBookCategoryMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pBookCategoryDao")
public class PBookCategoryDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.base.dao.PBookCategoryDao{

             @Autowired
             private PBookCategoryMapper pBookCategoryMapper;

    public int insert(PBookCategory record){
        return pBookCategoryMapper.insert(record);
    }

    public int insertSelective(PBookCategory record){
        pBookCategoryMapper.insertSelective(record);
        return record.getId();
    }
	
	public List<PBookCategory> queryBookCateGory() {
		return pBookCategoryMapper.queryBookCateGory();
	}

	public List<PBookCategory> findByName(String name) {
		return pBookCategoryMapper.findByName(name);
	}



}